package com.yhgarden.bbs.mapper.system;

import com.yhgarden.bbs.entity.system.BaseSelectItem;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface BaseSelectItemMapper {
    public int create(BaseSelectItem selectItem);

    public int update(BaseSelectItem selectItem);

    public BaseSelectItem getById(@Param("id") String id);

    public BaseSelectItem getByIdMoreDetail(@Param("id") String id);

    public List<BaseSelectItem> getByPid(@Param("pid") String pid);

    public List<BaseSelectItem> query(@Param("example") BaseSelectItem selectItem,
                                      @Param("order") String order,
                                      @Param("sort") String sort);

    public List<BaseSelectItem> queryMoreDetail(@Param("example") BaseSelectItem selectItem,
                                                @Param("order") String order,
                                                @Param("field") String field);

    public int delete(@Param("id") String id);

    public int batchDelete(@Param("ids") List<String> ids);

}
